package com.loop.homework.animal;

public class Dog extends Animal{
    public Dog(Integer age, String color) {
        super(age, color);
    }

    public Dog() {
    }
    // 重写了eat方法
    @Override
    public void eat(String something) {
        System.out.println(getAge()+"的"+getColor()+"颜色的狗两只前腿死死的抱着"+something+"猛吃");
    }
    //狗独立的行为方法
    public void lookHome(){
        System.out.println("狗看家");
    }
}
